home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
TIME_ZON
/
CLISTBOX.H
< prev
next >
Wrap
Text File
|
1991-11-08
|
1KB
|
35 lines
/* CListBox.h
The CListBox class presents and maintains a list in a window or dialog,
taking care of pointing and clicking events, and selection of an
object. Note that GenRoutines is required with this class, and that
it can be shown in use in the CNameList class.
*/
#define _H_CListBox
#include <CObject.h>
struct CListBox : CObject {
ListHandle theList; // The List Manager's handle
Rect dRect; // The display rectange for the list
WindowPtr theWind; // The dialog containing the list
int itemNo; // The item of the dialog
void IListBox(WindowPtr, Rect *, int, int); // Initialize
void Dispose(void); // Dispose
void SetCell(int, char *); // Set a cell's value
void GetCell(char *); // Get a cell's value
void ClearSelect(void); // Make no selection
void InsertCell(int,char *); // Add a new cell
void RemoveCell(int); // Drop a cell
void Draw(void); // Frame the list
void Update(void); // Draw the list
Boolean IsIn(Point); // In Point inside?
void DoClick(Point, EventRecord *); // The list is clicked
};
pascal void draw_list(WindowPtr,int);
pascal Boolean check_list(DialogPtr,EventRecord *,int *);